///从蓝牙设备获取的数据模型
class DataModel {
  ///设备名称
  String name;

  ///开/关机
  bool isOn;

  ///模式值
  int mode;

  ///运行/暂停
  bool isPlay;

  ///速度
  int speed;

  ///红色
  int red;

  ///绿色
  int green;

  ///蓝色
  int blue;

  ///亮度
  int warmWhite;

  ///版本号
  int version;

  DataModel(
      {required this.name,
      required this.isOn,
      required this.mode,
      required this.isPlay,
      required this.speed,
      required this.red,
      required this.green,
      required this.blue,
      required this.warmWhite,
      required this.version});
}
